<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title></title>  <link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="/template/pc1/images/wmh_favicon.ico">
    <link href="/res/plugins/hplus/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/res/plugins/hplus/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/res/plugins/hplus/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="/res/plugins/hplus/css/animate.css" rel="stylesheet">
    <link href="/res/plugins/hplus/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="/res/plugins/hplus/css/plugins/toastr/toastr.min.css" rel="stylesheet">

</head>

<body class="white-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12" >
            <table id="exampleTableEvents" data-toggle="table" data-mobile-responsive="true">
                <thead>
                <tr>
                    <th data-field="state" data-checkbox="true"></th>
                    <th data-field="username" data-formatter="usernameFormatter">佣金来源</th>
                    <th data-field="createDate">时间</th>
                    <th data-field="addMoney">金额（元）</th>
                    <th data-field="level">级别</th>
                    <th data-field="rate">比例（%）</th>
                </tr>
                </thead>
            </table>
        </div>
    </div>
</div>
<script src="/res/plugins/hplus/js/jquery.min.js?v=2.1.4"></script>
<script src="/res/plugins/hplus/js/bootstrap.min.js?v=3.3.6"></script>
<script src="/res/plugins/hplus/js/content.js?v=1.0.0"></script>
<script src="/res/plugins/hplus/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/res/plugins/hplus/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/res/plugins/hplus/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="https://static.9hive.cn/global/vendor/layer/layer.js"></script>
<script src="/res/plugins/hplus/js/plugins/toastr/toastr.min.js"></script>

<script>

    function usernameFormatter(value, row, index){
        if(row.level == 0){
            return '<span style="color: #ff0000">本人提现</span>';
        }
        if(row.level == -1){
            return '<span style="color: #ff0000">购买产品</span>';
        }
        return value;
    }

    (function() {
        toastr.options = {
            "positionClass" : "toast-top-center"
        };
        $('#exampleTableEvents').bootstrapTable({
            url: "/mall/admin/businessmember/getUserBackMoney?id=${id}",
            search: true,
            pagination: true,
            showRefresh: true,
            showToggle: true,
            showColumns: true,
            iconSize: 'outline',
            toolbar: '#exampleTableEventsToolbar',
            icons: {
                refresh: 'glyphicon-repeat',
                toggle: 'glyphicon-list-alt',
                columns: 'glyphicon-list'
            }
        });
    })();
</script>
</body>

</html>
